
#ifndef	PWM______H__________
#define	PWM______H__________
#include "../config.h"

typedef struct pwm{
	int pin;
	int value;
	int period;
	int duty_cycle;
}PWM;

/*** PWM functions ***/
/* PWM export */
int pwm_export(unsigned int pin);
/* PWM unexport */
int pwm_unexport(unsigned int pin);
/* PWM configuration */
int pwm_config(PWM* pwm);
/* PWM enable */
int pwm_enable(unsigned int pin);
/* PWM disable */
int pwm_disable(unsigned int pin);

#endif
